package cn.fsd.mapper;

import cn.fsd.domain.Commodity;
import cn.fsd.domain.Purchase_bill;
import cn.fsd.domain.Suppliers;
import cn.fsd.query.delivery.PurchaseBillQuery;
import java.util.List;

import cn.fsd.vo.storeroom.purchase.PurchaseBillCommodityVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface Purchase_billMapper {
    int deleteByPrimaryKey(String bill_id);

    int insert(Purchase_bill record);

    Purchase_bill selectByPrimaryKey(String bill_id);

    List<Purchase_bill> selectAll();

    int updateByPrimaryKey(Purchase_bill record);

    List<Purchase_bill> selectBySuppliers(PurchaseBillQuery query, List<Suppliers> suppliers);

    List<Purchase_bill> selectByCommodityCode(PurchaseBillQuery query, List<Commodity> commodities);

    void updateReturnNum(Purchase_bill bill);

    List<PurchaseBillCommodityVO> selectByPage(PurchaseBillQuery query);
}